package com.bootdo.crm.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.bootdo.crm.dao.BusinessTypeDao;
import com.bootdo.crm.domain.BusinessTypeDO;
import com.bootdo.crm.service.BusinessTypeService;



@Service
public class BusinessTypeServiceImpl implements BusinessTypeService {
	@Autowired
	private BusinessTypeDao businessTypeDao;
	
	@Override
	public BusinessTypeDO get(Integer typeId){
		return businessTypeDao.get(typeId);
	}
	
	@Override
	public List<BusinessTypeDO> list(Map<String, Object> map){
		return businessTypeDao.list(map);
	}
	
	@Override
	public int count(Map<String, Object> map){
		return businessTypeDao.count(map);
	}
	
	@Override
	public int save(BusinessTypeDO businessType){
		return businessTypeDao.save(businessType);
	}
	
	@Override
	public int update(BusinessTypeDO businessType){
		return businessTypeDao.update(businessType);
	}
	
	@Override
	public int remove(Integer typeId){
		return businessTypeDao.remove(typeId);
	}
	
	@Override
	public int batchRemove(Integer[] typeIds){
		return businessTypeDao.batchRemove(typeIds);
	}
	
}
